package cn.linstudy.blog.service;

import cn.linstudy.blog.dto.DictionaryByNameDTO;
import cn.linstudy.blog.dto.DictionaryDTO;
import cn.linstudy.blog.dto.DictionaryVagueDTO;
import cn.linstudy.blog.vo.BaseVO;
import cn.linstudy.blog.vo.CommonListVO;
import cn.linstudy.blog.vo.DictionaryByIdVO;
import cn.linstudy.blog.vo.DictionaryVO;
import cn.linstudy.blog.vo.DictionaryVagueVO;

/**
 * @Author XiaoLin
 * @Date 2021/12/22 17:07
 * @Description
 */
public interface DictionaryService {

    /**
     * 根据数据名称查询
     */
    CommonListVO<DictionaryVO> list(DictionaryByNameDTO dictionaryByNameDTO);

    /**
     * 数据列表
     */
    CommonListVO<DictionaryVagueVO> query(DictionaryVagueDTO dictionaryVagueDTO);

    /**
     * 添加
     */
    BaseVO add(DictionaryDTO dictionaryDTO, String username);

    /**
     * 修改
     */
    BaseVO update(DictionaryDTO dictionaryDTO, Integer id, String username);

    /**
     * 删除
     */
    BaseVO delete(Integer id);

    /**
     * 根据id查询
     */
    DictionaryByIdVO queryDictionaryById(Integer id);
}
